home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / javacc.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  4KB  |  99 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  3. <MODE>
  4.     <PROPS>
  5.         <PROPERTY NAME="commentStart" VALUE="/*" />
  6.         <PROPERTY NAME="commentEnd" VALUE="*/" />
  7.         <PROPERTY NAME="lineComment" VALUE="//" />
  8.         <PROPERTY NAME="wordBreakChars" VALUE=",+-=<>/?^&*" />
  9.  
  10.         <!-- Auto indent -->
  11.         <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
  12.         <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
  13.         <PROPERTY NAME="unalignedOpenBrackets" VALUE="(" />
  14.         <PROPERTY NAME="unalignedCloseBrackets" VALUE=")" />
  15.         <PROPERTY NAME="indentNextLine"
  16.             VALUE="\s*(((if|while)\s*\(|else\s+|else$|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
  17.         <PROPERTY NAME="unindentThisLine"
  18.             VALUE="^.*(default:\s*|case.*:.*)$" />
  19.         <PROPERTY NAME="electricKeys" VALUE=":" />
  20.     </PROPS>
  21.     <RULES IGNORE_CASE="FALSE">
  22.         <IMPORT DELEGATE="java::MAIN"/>
  23.  
  24.         <!-- regular expression definitions -->
  25.         <SEQ_REGEXP HASH_CHAR="<" TYPE="KEYWORD2"><[[:space:]]*\w+[[:space:]]*[:]</SEQ_REGEXP>
  26.  
  27.         <!-- regular expression label(s) -->
  28.         <SEQ_REGEXP HASH_CHAR="<" TYPE="KEYWORD2"><[[:space:]]*\w+([[:space:]]*[,][[:space:]]*\w+[[:space:]]*)*[[:space:]]*></SEQ_REGEXP>
  29.  
  30.         <!-- private regular expression labels -->
  31.         <SEQ_REGEXP HASH_CHAR="#" TYPE="KEYWORD2">[#]\w+[:]</SEQ_REGEXP>
  32.  
  33.         <KEYWORDS>
  34.             <!-- javacc keywords -->
  35.             <KEYWORD1>EOF</KEYWORD1>
  36.             <KEYWORD1>IGNORE_CASE</KEYWORD1>
  37.             <KEYWORD1>JAVACODE</KEYWORD1>
  38.             <KEYWORD1>LOOKAHEAD</KEYWORD1>
  39.             <KEYWORD1>MORE</KEYWORD1>
  40.             <KEYWORD1>PARSER_BEGIN</KEYWORD1>
  41.             <KEYWORD1>PARSER_END</KEYWORD1>
  42.             <KEYWORD1>SKIP</KEYWORD1>
  43.             <KEYWORD1>SPECIAL_TOKEN</KEYWORD1>
  44.             <KEYWORD1>TOKEN</KEYWORD1>
  45.             <KEYWORD1>TOKEN_MGR_DECLS</KEYWORD1>
  46.             <KEYWORD1>options</KEYWORD1>
  47.         
  48.             <!-- javacc option keywords -->
  49.             <KEYWORD1>CHOICE_AMBIGUITY_CHECK</KEYWORD1>
  50.             <KEYWORD1>OTHER_AMBIGUITY_CHECK</KEYWORD1>
  51.             <KEYWORD1>STATIC</KEYWORD1>
  52.             <KEYWORD1>SUPPORT_CLASS_VISIBILITY_PUBLIC</KEYWORD1>
  53.             <KEYWORD1>DEBUG_PARSER</KEYWORD1>
  54.             <KEYWORD1>DEBUG_LOOKAHEAD</KEYWORD1>
  55.             <KEYWORD1>DEBUG_TOKEN_MANAGER</KEYWORD1>
  56.             <KEYWORD1>ERROR_REPORTING</KEYWORD1>
  57.             <KEYWORD1>JAVA_UNICODE_ESCAPE</KEYWORD1>
  58.             <KEYWORD1>UNICODE_INPUT</KEYWORD1>
  59.             <KEYWORD1>IGNORE_CASE</KEYWORD1>
  60.             <KEYWORD1>USER_TOKEN_MANAGER</KEYWORD1>
  61.             <KEYWORD1>USER_CHAR_STREAM</KEYWORD1>
  62.             <KEYWORD1>BUILD_PARSER</KEYWORD1>
  63.             <KEYWORD1>BUILD_TOKEN_MANAGER</KEYWORD1>
  64.             <KEYWORD1>TOKEN_EXTENDS</KEYWORD1>
  65.             <KEYWORD1>TOKEN_FACTORY</KEYWORD1>
  66.             <KEYWORD1>TOKEN_MANAGER_USES_PARSER</KEYWORD1>
  67.             <KEYWORD1>SANITY_CHECK</KEYWORD1>
  68.             <KEYWORD1>FORCE_LA_CHECK</KEYWORD1>
  69.             <KEYWORD1>COMMON_TOKEN_ACTION</KEYWORD1>
  70.             <KEYWORD1>CACHE_TOKENS</KEYWORD1>
  71.             <KEYWORD1>OUTPUT_DIRECTORY</KEYWORD1>
  72.  
  73.             <!-- jjtree keywords -->
  74.             <KEYWORD1>BUILD_NODE_FILES</KEYWORD1>
  75.             <KEYWORD1>MULTI</KEYWORD1>
  76.             <KEYWORD1>NODE_DEFAULT_VOID</KEYWORD1>
  77.             <KEYWORD1>NODE_CLASS</KEYWORD1>
  78.             <KEYWORD1>NODE_FACTORY</KEYWORD1>
  79.             <KEYWORD1>NODE_PACKAGE</KEYWORD1>
  80.             <KEYWORD1>NODE_EXTENDS</KEYWORD1>
  81.             <KEYWORD1>NODE_PREFIX</KEYWORD1>
  82.             <KEYWORD1>NODE_SCOPE_HOOK</KEYWORD1>
  83.             <KEYWORD1>NODE_USES_PARSER</KEYWORD1>
  84.             <KEYWORD1>TRACK_TOKENS</KEYWORD1>
  85.             <KEYWORD1>STATIC</KEYWORD1>
  86.             <KEYWORD1>VISITOR</KEYWORD1>
  87.             <KEYWORD1>VISITOR_DATA_TYPE</KEYWORD1>
  88.             <KEYWORD1>VISITOR_RETURN_TYPE</KEYWORD1>
  89.             <KEYWORD1>VISITOR_EXCEPTION</KEYWORD1>
  90.             <KEYWORD1>JJTREE_OUTPUT_DIRECTORY</KEYWORD1>
  91.         
  92.             <!-- DEFAULT is the standard lexical state -->
  93.             <KEYWORD2>DEFAULT</KEYWORD2>
  94.         </KEYWORDS>
  95.  
  96.     </RULES>
  97. </MODE>
  98.  
  99.